package com.etc.pojo;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class User {

    private String userId;
    private String userName;
    private String password;
    private String salt;
    private String phone;
    private int userState;
    private int userLevel;
    private String userDate;
    private String userImg;
    private List<Video> list;
    private int vipState;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getUserState() {
        return userState;
    }

    public void setUserState(int userState) {
        this.userState = userState;
    }

    public int getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(int userLevel) {
        this.userLevel = userLevel;
    }

    public String getUserDate() {
        return userDate;
    }

    public void setUserDate(String userDate) {
        this.userDate = userDate;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public List<Video> getList() {
        return list;
    }

    public void setList(List<Video> list) {
        this.list = list;
    }

    public int getVipState() {
        return vipState;
    }

    public void setVipState(int vipState) {
        this.vipState = vipState;
    }

    public User() {
    }

    public User(String userName, String password, String salt, String phone) {
        this.userName = userName;
        this.password = password;
        this.salt = salt;
        this.phone = phone;
    }

    public User(String userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public User(String userId, String userName, String password, String salt, String phone, int userState, int userLevel, String userDate, String userImg) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.salt = salt;
        this.phone = phone;
        this.userState = userState;
        this.userLevel = userLevel;
        this.userDate = userDate;
        this.userImg = userImg;
    }

    public User(String userId, String userName, String password, String salt, String phone, int userState, int userLevel, String userDate, String userImg, List<Video> list) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.salt = salt;
        this.phone = phone;
        this.userState = userState;
        this.userLevel = userLevel;
        this.userDate = userDate;
        this.userImg = userImg;
        this.list = list;
    }

    public User(String userId, String userName, String password, String salt, String phone, int userState, int userLevel, String userDate, String userImg, List<Video> list, int vipState) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.salt = salt;
        this.phone = phone;
        this.userState = userState;
        this.userLevel = userLevel;
        this.userDate = userDate;
        this.userImg = userImg;
        this.list = list;
        this.vipState = vipState;
    }

    public User(String userId, String userName, String password, String salt, int vipState) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.salt = salt;
        this.vipState = vipState;
    }

    public User(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", phone='" + phone + '\'' +
                ", userState=" + userState +
                ", userLevel=" + userLevel +
                ", userDate='" + userDate + '\'' +
                ", userImg='" + userImg + '\'' +
                '}';
    }
}
